package com.hzw.saas.web.app.hpc.param;

import com.hzw.saas.api.hpc.enums.HpcAccountStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/5/14 14:37
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("分配HPC副账号参数")
public class AllotSubHpcAccountParam {

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID")
    private List<String> userIds;

    @NotBlank(message = "指定的HPC帐号不能为空")
    @ApiModelProperty(value = "指定的HPC帐号")
    private String hpcAccountUserId;

    @ApiModelProperty(value = "HPC状态，1-正常，0-冻结，默认1")
    private Integer status = HpcAccountStatus.NORMAL.value();

    @Future(message = "共享帐号过期时间不能小于当前时间")
    @ApiModelProperty(value = "共享帐号过期时间")
    private Date expireTime;

}
